import React, {PropsWithChildren} from 'react';
import { PageContainer } from '@ant-design/pro-components';
// @ts-ignore
import { Outlet } from 'umi';


const Admin: React.FC<PropsWithChildren> = ({ children }) => {
  return (
    <PageContainer content="该页面仅管理员可见">
      {children}
      <Outlet />;
    </PageContainer>
  );
};

export default Admin;
